package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户优惠券
 * </p>
 *
 * @author Lbx
 * @since 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdMemberCoupons对象", description="用户优惠券")
public class JdMemberCoupons extends Model<JdMemberCoupons> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "用户id")
    private String memberId;

    @ApiModelProperty(value = "优惠券id")
    private String couponsId;

    @ApiModelProperty(value = "领取时间")
    private String getTime;

    @ApiModelProperty(value = "使用时间")
    private String useTime;

    @ApiModelProperty(value = "状态(0-未使用 1-已使用 2-已失效)")
    private String status;

    @TableField(exist = false)
    private String isShow;

    @TableField(fill = FieldFill.INSERT)
    private String ct;

    private String cb;

    @TableField(fill = FieldFill.UPDATE)
    private String et;

    private String eb;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
